paned: don't set the "pane-separator" style class to all the container
authorCosimo Cecchi <cosimoc@gnome.org>
Wed, 9 Mar 2011 06:14:24 +0000 (01:14 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 13 Mar 2011 01:36:40 +0000 (20:36 -0500)
Otherwise children inherit color properties specified for the pane
separator itself.

https://bugzilla.gnome.org/show_bug.cgi?id=644276

gtk/gtkpaned.c

index 6962059dd7d206a5e4db8608b04b943687b7bd65..2094c9506db3dac955a8bc3c1f7bd873bd9e8488 100644 (file)
@@ -685,9 +685,6 @@ gtk_paned_init (GtkPaned *paned)
   priv->handle_pos.y = -1;
 
   priv->drag_pos = -1;
-
-  context = gtk_widget_get_style_context (GTK_WIDGET (paned));
-  gtk_style_context_add_class (context, GTK_STYLE_CLASS_PANE_SEPARATOR);
 }
 
 static void
@@ -1213,6 +1210,7 @@ gtk_paned_draw (GtkWidget *widget,
 
       gtk_style_context_save (context);
       gtk_style_context_set_state (context, state);
+      gtk_style_context_add_class (context, GTK_STYLE_CLASS_PANE_SEPARATOR);
       gtk_render_handle (context, cr,
                          priv->handle_pos.x - allocation.x,
                          priv->handle_pos.y - allocation.y,